<template>
  <h1>下拉选框组件</h1>
  <el-select v-model="city" placeholder="请选择城市" style="width:50%;">
    <el-option label="长春" value="cc"></el-option>
    <el-option label="杭州" value="hz"></el-option>
    <el-option label="郑州" value="zz"></el-option>
    <el-option label="北京" value="bj"></el-option>
  </el-select>
  <h4>提交的值:{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";
const city = ref('hz');
</script>

<style scoped>

</style>